<template>
  <div class="empty">
    <img :class="`empty-img--${size}`" src="~assets/img/img_empty.png" />
    <div class="empty-text f4">
      {{ emptyText }}
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    emptyText: {
      type: String,
      default() {
        return '暂时没有数据噢~'
      }
    },
    size: String
  }
}
</script>

<style lang="less" scoped>
.empty {
  width: 100%;
  padding: 20px 0;
  text-align: center;
  .empty-text {
    margin-top: 20px;
  }
  .empty-img--small {
    width: 150px;
    height: 150px;
  }
}
</style>
